cmake_minimum_required (VERSION 2.6)

project (UBUNTU_RS485_PROJCET)

add_definitions(-std=c++11)

#指定编译目录
include_directories(
    # ${PROJECT_SOURCE_DIR}/helper
    # ${PROJECT_SOURCE_DIR}/json11
    ${PROJECT_SOURCE_DIR}/libmodbus
    # ${PROJECT_SOURCE_DIR}/Refrigerator
    # ${PROJECT_SOURCE_DIR}/TempController
)

# SET(CMAKE_BUILD_TYPE "Debug")

set(PROJECT_BINARY_DIR ${PROJECT_SOURCE_DIR}/build)

add_executable(UBUNTU_RS485_PROJCET
    main.cpp
    rs485.cpp)

target_link_libraries(UBUNTU_RS485_PROJCET modbus pthread)
